﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lswweb.Model
{
    public class Currency
    {
        public int Id { get; set;}

        public string Name { get; set; }

        public string Symbol { get; set; }

        public string Code { get; set; }

        public string Icon { get; set; }

        public decimal ExchangeRate { get; set; }

        public bool IsDefault { get; set; }

        public Decimal Exchange(Decimal money)
        {
            return Math.Round(money * ExchangeRate,2);
        }
    }
}
